home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / treiber / grafik / miro / crystal / cr20sv / win_nt / 20svnt.exe / OEMSETUP.INF < prev    next >
INI File  |  1995-10-13  |  19KB  |  428 lines

  1. [Identification]
  2.     OptionType = VIDEO
  3.  
  4. [LanguagesSupported]
  5.     ENG
  6.  
  7. [ProgressCopyENG]
  8.     ProCaption   = "Windows NT Setup"
  9.     ProCancel    = "Cancel"
  10.     ProCancelMsg = "Windows NT is not correctly installed.  Are you sure you want "+
  11.                    "to cancel copying files?"
  12.     ProCancelCap = "Setup Message"
  13.     ProText1     = "Copying:"
  14.     ProText2     = "To:"
  15.  
  16. [StringsENG]
  17.     String1 = "Display"
  18.     String2 = "Please enter the full path to the Windows NT Display "+
  19.               "driver files.  If you want to install files from the "+
  20.               "original Setup floppy disks, type a drive letter (such "+
  21.               "as A:) and Setup will prompt you for the correct disk.  "+
  22.               "Then choose Continue."
  23.  
  24. [Source Media Descriptions]
  25.     1 = "miro.plus high-speed drivers setup disk", TAGFILE = miro
  26.  
  27. [OptionsTextENG]
  28.     "crystals" = "miroCRYSTAL (single screen)"
  29.     "crystal2" = "miroCRYSTAL (TWINFACE)"
  30.  
  31. [Options]
  32.     "crystals" = crystals
  33.     "crystal2" = crystal2
  34.  
  35. [MiniportDrivers]
  36.     crystals = crystals, !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, {crystals}, 0, "%SystemRoot%\System32\IoLogMsg.dll", 7, 1, {cpl,cplt           }, noconfig
  37.     crystal2 = crystal2, !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, {crystal2}, 0, "%SystemRoot%\System32\IoLogMsg.dll", 6, 1, {cpl,cplt,mtwc,mtwcd}, noconfig
  38.  
  39. [Files-DisplayDLLs]
  40.     crystals = 1, CRYSTALS.DLL, SIZE=110000
  41.     crystal2 = 1, CRYSTAL2.DLL, SIZE=110000
  42.  
  43. [Files-DisplayMiniportDrivers]
  44.     crystals = 1, CRYSTALS.SYS, SIZE=75000
  45.     crystal2 = 1, CRYSTAL2.SYS, SIZE=75000
  46.  
  47. [Files-Other]
  48.     cpl      = 1, MLINADDR.CPL, SIZE=60000
  49.     cplt     = 1, CRYSTAL2.CPL, SIZE=60000
  50.     mtwc     = 1, MTWINCON.EXE, SIZE=50000
  51.     mtwcd    = 1, MTWINDLL.DLL, SIZE=50000
  52.  
  53. [Files-Ini]
  54.     i00 = 1, CARD000A.INI, SIZE=15000
  55.     i01 = 1, CARD000B.INI, SIZE=15000
  56.     i02 = 1, CARD000D.INI, SIZE=15000
  57.     i03 = 1, CARD000E.INI, SIZE=15000
  58.     i04 = 1, CARD000F.INI, SIZE=15000
  59.     i05 = 1, CARD0010.INI, SIZE=15000
  60.     i06 = 1, CARD0012.INI, SIZE=15000
  61.     i07 = 1, CARD0015.INI, SIZE=15000
  62.     i08 = 1, CARD0016.INI, SIZE=15000
  63.     i09 = 1, CARD0017.INI, SIZE=15000
  64.     i10 = 1, CARD010A.INI, SIZE=15000
  65.     i11 = 1, CARD010B.INI, SIZE=15000
  66.     i12 = 1, CARD010D.INI, SIZE=15000
  67.     i13 = 1, CARD010E.INI, SIZE=15000
  68.     i14 = 1, CARD020D.INI, SIZE=15000
  69.     i15 = 1, CARD020E.INI, SIZE=15000
  70.     i16 = 1, CARD0210.INI, SIZE=15000
  71.     i17 = 1, CARD0211.INI, SIZE=15000
  72.     i18 = 1, CARD0212.INI, SIZE=15000
  73.     i19 = 1, CARD0213.INI, SIZE=15000
  74.     i20 = 1, CARD0214.INI, SIZE=15000
  75.     i21 = 1, CARD030B.INI, SIZE=15000
  76.     i22 = 1, CARD0311.INI, SIZE=15000
  77.     i23 = 1, CARD0313.INI, SIZE=15000
  78.     i24 = 1, CARD040B.INI, SIZE=15000
  79.     i25 = 1, CARD0510.INI, SIZE=15000
  80.     i26 = 1, CARD0513.INI, SIZE=15000
  81.     i27 = 1, CARD0610.INI, SIZE=15000
  82.     i28 = 1, MIROHW.INI,   SIZE=15000
  83.     i29 = 1, MIRONAME.INI, SIZE=15000
  84.     i30 = 1, MONITOR.INI,  SIZE=80000
  85.     i31 = 1, TIMING.INI,   SIZE=80000
  86.  
  87. [OpenGLDrivers]
  88.  
  89. [Identify]
  90.     read-syms Identification
  91.     set Status     = STATUS_SUCCESSFUL
  92.     set Identifier = $(OptionType)
  93.     set Media      = #("Source Media Descriptions", 1, 1)
  94.     Return $(Status) $(Identifier) $(Media)
  95.  
  96. [ServicesEntry]
  97.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  98.  
  99. [SystemVariables]
  100.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  101.     STF_WINDOWSPATH = "" ? $(!LIBHANDLE) GetWindowsNtDir
  102.  
  103. [InstallOption]
  104.     set Status       = STATUS_FAILED
  105.     set DrivesToFree = {}
  106.     set !Option   = $($1)
  107.     set SrcDir    = $($2)
  108.     set AddCopy   = $($3)
  109.     set DoCopy    = $($4)
  110.     set DoConfig  = $($5)
  111.     set DoInstall = $($6)
  112.     set LanguageList = ^(LanguagesSupported, 1)
  113.     Ifcontains(i) $($0) in $(LanguageList)
  114.     else
  115.         set Status = STATUS_NOLANGUAGE
  116.         goto finish_InstallOption
  117.     endif
  118.     read-syms Strings$($0)
  119.     ifstr(i) $(!Option) != "DETECT"
  120.         set OptionList = ^(Options, 0)
  121.         ifcontains $(!Option) in $(OptionList)
  122.         else
  123.             goto finish_InstallOption
  124.         endif
  125.         set OptionList = ""
  126.         set DriverEntry       =   #(Options, $(!Option), 1)
  127.         set MiniportDriver    =   #(MiniportDrivers, $(DriverEntry), 1)
  128.         set InstalledDisplays =   #(MiniportDrivers, $(DriverEntry), 5)
  129.         set OtherFiles        =   #(MiniportDrivers, $(DriverEntry), 10)
  130.     endif
  131.     read-syms ServicesEntry
  132.     detect    ServicesEntry
  133.     set DriversList        = ^(MiniportDrivers, 0)
  134.     set MiniportDriverList = ^(Files-DisplayMiniportDrivers, 0)
  135.     set DisplayDriverList  = ^(Files-DisplayDLLs, 0)
  136.     set OpenGLDriverList   = ^(OpenGLDrivers, 0)
  137.     set OtherFilesList     = ^(Files-Other, 0)
  138. installtheoption = +
  139.     ifstr(i) $(AddCopy) == "YES"
  140.         ifstr(i) $(!Option) == "DETECT"
  141.             set DoActualCopy = YES
  142.         else
  143.             set DoActualCopy = NO
  144.             set FileToCheck = #(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  145.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
  146.             ifstr(i) $(STATUS) == NO
  147.                 set DoActualCopy = YES
  148.                 goto addfiles
  149.             endif
  150.             ForListDo $(OtherFiles)
  151.                  ifcontains $($) in $(OtherFilesList)
  152.                     set FileToCheck = #(Files-Other, $($), 2)
  153.                     LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  154.                     ifstr(i) $(STATUS) == NO
  155.                         set DoActualCopy = YES
  156.                         goto addfiles
  157.                     endif
  158.                  endif
  159.             EndForListDo
  160.             ForListDo $(InstalledDisplays)
  161.                 ifcontains $($) in $(DisplayDriverList)
  162.                     set FileToCheck = #(Files-DisplayDLLs, $($), 2)
  163.                     LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  164.                     ifstr(i) $(STATUS) == NO
  165.                         set DoActualCopy = YES
  166.                         goto addfiles
  167.                     endif
  168.                     ifcontains $($) in $(OpenGLDriverList)
  169.                         set FileToCheck = #(Files-DisplayOpenGLDrivers, #(OpenGLDrivers, $($), 1), 2)
  170.                         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  171.                         ifstr(i) $(STATUS) == NO
  172.                             set DoActualCopy = YES
  173.                             goto addfiles
  174.                         endif
  175.                     endif
  176.                 endif
  177.             EndForListDo
  178.         endif
  179. addfiles = +
  180.         ifstr(i) $(DoActualCopy) == NO
  181.             shell "subroutn.inf" DriversExist $($0) $(String1)
  182.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  183.                 Debug-Output "VIDEO.INF: shelling DriversExist failed"
  184.                 goto finish_InstallOption
  185.             endif
  186.             ifstr(i) $($R0) == STATUS_CURRENT
  187.             else-ifstr(i) $($R0) == STATUS_NEW
  188.                 set DoActualCopy = YES
  189.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  190.                 Debug-Output "VIDEO.INF: User cancelled video installation"
  191.                 goto finish_InstallOption
  192.             else
  193.                 Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  194.                 goto finish_InstallOption
  195.             endif
  196.         endif
  197.         ifstr(i) $(DoActualCopy) == YES
  198.             shell "registry.inf" GetNTSource
  199.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  200.             else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  201.             else
  202.                 set SrcDir = $($R1)
  203.             endif
  204.             shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  205.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  206.                 Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  207.                 goto finish_InstallOption
  208.             endif
  209.             ifstr(i) $($R0) == STATUS_SUCCESSFUL
  210.                 set SrcDir = $($R1)
  211.                 ifstr(i) $($R2) != ""
  212.                     set DrivesToFree = >($(DrivesToFree), $($R2))
  213.                 endif
  214.             else
  215.                 Debug-Output "VIDEO.INF: User cancelled asking source."
  216.                 goto finish_InstallOption
  217.             endif
  218.             ifstr(i) $(!Option) != "DETECT"
  219.                 install Install-AddCopyOption
  220.             else
  221.                 install Install-AddAllCopy
  222.             endif
  223.             ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  224.                 Debug-Output "VIDEO.INF: Adding video files to copy list failed"
  225.                 goto finish_InstallOption
  226.             endif
  227.         else
  228.             set DoCopy = NO
  229.         endif
  230.     endif
  231.     ifstr(i) $(DoCopy) == "YES"
  232.         read-syms ProgressCopy$($0)
  233.         install Install-DoCopyOption
  234.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  235.             Debug-Output "Copying files failed"
  236.             goto finish_InstallOption
  237.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  238.             set Status = STATUS_USERCANCEL
  239.             goto finish_InstallOption
  240.         endif
  241.     endif
  242.     ifstr(i) $(DoConfig) == "YES"
  243.         shell "registry.inf" CheckSetupModify
  244.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  245.             goto finish_InstallOption
  246.         endif
  247.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  248.             goto finish_InstallOption
  249.         endif
  250.         ForListDo $(DriversList)
  251.             ifstr(i) $(!Option) == "DETECT"
  252.                 set DriverEntry = $($)
  253.                 set DeviceDescription = ""
  254.                 set ErrorControl      = $(!SERVICE_ERROR_IGNORE)
  255.                 ifcontains #(MiniportDrivers, $(DriverEntry), 1) in $(MiniportDriverList)
  256.                     ifint #(MiniportDrivers, $(DriverEntry), 9) == 1
  257.                         set configDriver = YES
  258.                     else
  259.                         set configDriver = NO
  260.                     endif
  261.                 else
  262.                     set configDriver = NO
  263.                 endif
  264.             else
  265.                 set DeviceDescription = $(!Option)
  266.                 set ErrorControl      = $(#(MiniportDrivers, $(DriverEntry), 4))
  267.                 ifstr(i) $(DriverEntry) == $($)
  268.                     set configDriver = YES
  269.                 else
  270.                     set configDriver = NO
  271.                 endif
  272.             endif
  273.             ifstr(i) $(configDriver) == YES
  274.                 Debug-Output "configuring the miniport driver"
  275.                 set MiniportDriver    =   #(MiniportDrivers, $(DriverEntry), 1)
  276.                 set Type              = $(#(MiniportDrivers, $(DriverEntry), 2))
  277.                 set Group             =   #(MiniportDrivers, $(DriverEntry), 3)
  278.                 set InstalledDisplays =   #(MiniportDrivers, $(DriverEntry), 5)
  279.                 set VgaCompatible     =   #(MiniportDrivers, $(DriverEntry), 6)
  280.                 set EventMessageFile  =   #(MiniportDrivers, $(DriverEntry), 7)
  281.                 set TypesSupported    =   #(MiniportDrivers, $(DriverEntry), 8)
  282.                 set ServiceNode   = $(DriverEntry)
  283.                 set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  284.                 set ServicesValues = { +
  285.                         {Type,           0, $(!REG_VT_DWORD),     $(Type)                  }, +
  286.                         {Group,          0, $(!REG_VT_SZ),        $(Group)                 }, +
  287.                         {ErrorControl,   0, $(!REG_VT_DWORD),     $(ErrorControl)          }, +
  288.                         {BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary)         }  +
  289.                         }
  290.                 ifstr(i) $(DoInstall) == "YES"
  291.                     set ServicesValues = >($(ServicesValues), +
  292.                             {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_SYSTEM_START) })
  293.                 else
  294.                     set ServicesValues = >($(ServicesValues), +
  295.                             {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_DISABLED)     })
  296.                 endif
  297.                 set !ParametersValues = { +
  298.                         {"Device Description",        0, $(!REG_VT_SZ),       $(DeviceDescription) }, +
  299.                         {InstalledDisplayDrivers,     0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
  300.                         {VgaCompatible,               0, $(!REG_VT_DWORD),    $(VgaCompatible)     }, +
  301.                         {DefaultSettings.BitsPerPel,  0, $(!REG_VT_DWORD),    0                    }, +
  302.                         {DefaultSettings.VRefresh,    0, $(!REG_VT_DWORD),    0                    }, +
  303.                         {DefaultSettings.Interlaced,  0, $(!REG_VT_DWORD),    0                    }, +
  304.                         {DefaultSettings.XResolution, 0, $(!REG_VT_DWORD),    0                    }, +
  305.                         {DefaultSettings.YResolution, 0, $(!REG_VT_DWORD),    0                    }, +
  306.                         {DoLinearAddressing,          0, $(!REG_VT_DWORD),    0                    }, +
  307.                         {Primary.IsLeft,              0, $(!REG_VT_DWORD),    0                    }, +    
  308.                         {TwinControlFlag,             0, $(!REG_VT_DWORD),    0                    }  +    
  309.                         }
  310.                 ifstr(i) $(!Option) != "DETECT"
  311.                     shell "" #(MiniportDrivers, $(DriverEntry), 11)
  312.                 endif
  313.                 set DeviceValues = {}
  314.                 set EventLogValues = { +
  315.                         {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
  316.                         {TypesSupported,   0, $(!REG_VT_DWORD),     $(TypesSupported)   }  +
  317.                         }
  318.                 shell "registry.inf"  MakeServicesEntry $(ServiceNode)       +
  319.                                                         $(ServicesValues)    +
  320.                                                         $(!ParametersValues) +
  321.                                                         $(DeviceValues)      +
  322.                                                         $(EventLogValues)    +
  323.                                                         Device0
  324.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  325.                     Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
  326.                     goto finish_InstallOption
  327.                 endif
  328.                 ifstr(i) $($R0) != STATUS_SUCCESSFUL
  329.                     Debug-Output "MakeServicesEntry failed for video"
  330.                     goto finish_InstallOption
  331.                 endif
  332.                 ForListDo $(InstalledDisplays)
  333.                     ifcontains $($) in $(OpenGLDriverList)
  334.                         set KeyPath = { +
  335.                                 {SOFTWARE,       0, $(MaskAllAccess)}, +
  336.                                 {Microsoft,      0, $(MaskAllAccess)}, +
  337.                                 {"Windows NT",   0, $(MaskAllAccess)}, +
  338.                                 {CurrentVersion, 0, $(MaskAllAccess)}, +
  339.                                 {OpenGLDrivers,  0, $(MaskAllAccess)}  +
  340.                                 }
  341.                         set KeyValue = { +
  342.                                 {$($), 0, $(!REG_VT_SZ), #(OpenGLDrivers, $($), 1) } +
  343.                                 }
  344.                         shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(KeyValue)
  345.                         Debug-Output "just did an OGL section"
  346.                         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  347.                             Debug-Output "Couldn't execute CreateKey in registry.inf"
  348.                             goto endInstallOpenGLDriver
  349.                         endif
  350.                         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  351.                             Debug-Output "CreateKey failed for OGLDrivers"
  352.                             goto endInstallOpenGLDriver
  353.                         endif
  354.                         Debug-Output "VIDEO.INF: success installing an ogl entry"
  355.                     endif
  356.                 EndForListDo
  357.             endif
  358.         EndForListDo
  359.     endif
  360.     set Status = STATUS_SUCCESSFUL
  361. finish_InstallOption = +
  362.     ForListDo $(DrivesToFree)
  363.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  364.     EndForListDo
  365.     Return $(Status)
  366.  
  367. [Install-AddCopyOption]
  368.     Debug-Output "adding to copy list"
  369.     set STF_VITAL = ""
  370.  
  371.     AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers   +
  372.                                   $(MiniportDriver)              +
  373.                                   $(SrcDir)                      +
  374.                                   $(!STF_WINDOWSSYSPATH)\drivers
  375.  
  376.     AddSectionFilesToCopyList     Files-Ini                      +
  377.                                   $(SrcDir)                      +
  378.                                   $(!STF_WINDOWSSYSPATH)\drivers
  379.  
  380.     ForListDo $(OtherFilesList)
  381.         ifcontains $($) in $(OtherFiles)
  382.             Debug-Output "adding other files to copy list"
  383.             AddSectionKeyFileToCopyList   Files-Other                +
  384.                                           $($)                       +
  385.                                           $(SrcDir)                  +
  386.                                           $(!STF_WINDOWSSYSPATH)
  387.         endif
  388.     EndForListDo
  389.  
  390.     ForListDo $(InstalledDisplays)
  391.         ifcontains $($) in $(DisplayDriverList)
  392.             Debug-Output "adding display driver to copy list"
  393.             AddSectionKeyFileToCopyList   Files-DisplayDLLs          +
  394.                                           $($)                       +
  395.                                           $(SrcDir)                  +
  396.                                           $(!STF_WINDOWSSYSPATH)
  397.             ifcontains $($) in $(OpenGLDriverList)
  398.                 Debug-Output "adding opengl driver to copy list"
  399.                 AddSectionKeyFileToCopyList   Files-DisplayOpenGLDrivers +
  400.                                               #(OpenGLDrivers, $($), 1)  +
  401.                                               $(SrcDir)                  +
  402.                                               $(!STF_WINDOWSSYSPATH)
  403.             endif
  404.         endif
  405.     EndForListDo
  406.     exit
  407.  
  408. [Install-AddAllCopy]
  409.     Debug-Output "adding all drivers to copy list"
  410.     set STF_VITAL = ""
  411.     AddSectionFilesToCopyList  Files-DisplayMiniportDrivers   +
  412.                                $(SrcDir)                      +
  413.                                $(!STF_WINDOWSSYSPATH)\drivers
  414.     AddSectionFilesToCopyList  Files-DisplayDLLs            +
  415.                                $(SrcDir)                    +
  416.                                $(!STF_WINDOWSSYSPATH)
  417.     exit
  418.  
  419. [Install-DoCopyOption]
  420.     CopyFilesInCopyList
  421.     exit
  422.  
  423. [noconfig]
  424.     return
  425.  
  426. [twinconfig]
  427.     return
  428.